package com.sherlochao.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.sherlochao.dao.UserDao;
import com.sherlochao.model.User;
import com.sherlochao.service.UserService;

@Transactional
@Service("userService")
public class UserServiceImpl implements UserService{
	
	@Resource
	private UserDao userDao;

	@Override
	public User get(String id) {
		return (User) userDao.get(id);
	}

	@Override
	public String save(User entity) {
		return userDao.save(entity);
	}

}
